package com.hpeng.sys.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.hpeng.sys.vo.Lookup;
import com.hpeng.sys.vo.Menu;
import com.hpeng.sys.vo.FuncProperties;
import com.hpeng.sys.vo.TemplateAuthority;

public interface Function {
	public List<Menu> getMenu(String userCode);
	public String getNavStr(String funcCode);
	public Long getMaxSeq(String tableName);
	public String getMaxStaffId();
	public boolean hasSysTemplate(String templateCode);
	public List<Lookup> getLookup(String key);
	public List<Lookup> getLookup(String lookupTable, String valueField, String descField);
	public List<FuncProperties> getFuncProperties();
	public List<TemplateAuthority> getTemplateAuthorities(String templateCode);
	public Map<String,String> getMapTemplateAuthorities(String templateCode);
	public void modifyAuthorities(HttpServletRequest request,String userId);
	public void modifyUserAuthorities(String userId);
	public String getDepIdByParentId(String pId);
	public String getAccessRight(String userId, String funcCode);
	public String getAccessRight(Map<String,Object> sessionMap, String funcCode);
	public String getAccessRight(HttpServletRequest request, String funcCode);
	public int getSonNumber(String table,String idname,String id);
    //查询主状态
	public String getMainStatusDesc(String statusCode);
	public String getSubStatusDesc(String statusCode,String subCode);
	public String getStatusDesc(String statusCode,String subCode);
	public void updStatus(String statusCode,String subCode,String... assestId);
	
	//查询资金来源
	public List<String> getAssetComefrom();
    //查询资产状态集合
	public List<String> getStatusList();
	public String getMainStatusCode(String statusDesc);
	public String getMaxSubCode();
	
}